package com.attendance.www.hr.entitys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ApprovalRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApprovalRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andApprovalRecordIdIsNull() {
            addCriterion("approval_record_id is null");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdIsNotNull() {
            addCriterion("approval_record_id is not null");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdEqualTo(Integer value) {
            addCriterion("approval_record_id =", value, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdNotEqualTo(Integer value) {
            addCriterion("approval_record_id <>", value, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdGreaterThan(Integer value) {
            addCriterion("approval_record_id >", value, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("approval_record_id >=", value, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdLessThan(Integer value) {
            addCriterion("approval_record_id <", value, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdLessThanOrEqualTo(Integer value) {
            addCriterion("approval_record_id <=", value, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdIn(List<Integer> values) {
            addCriterion("approval_record_id in", values, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdNotIn(List<Integer> values) {
            addCriterion("approval_record_id not in", values, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdBetween(Integer value1, Integer value2) {
            addCriterion("approval_record_id between", value1, value2, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andApprovalRecordIdNotBetween(Integer value1, Integer value2) {
            addCriterion("approval_record_id not between", value1, value2, "approvalRecordId");
            return (Criteria) this;
        }

        public Criteria andRequestIdIsNull() {
            addCriterion("request_id is null");
            return (Criteria) this;
        }

        public Criteria andRequestIdIsNotNull() {
            addCriterion("request_id is not null");
            return (Criteria) this;
        }

        public Criteria andRequestIdEqualTo(Integer value) {
            addCriterion("request_id =", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdNotEqualTo(Integer value) {
            addCriterion("request_id <>", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdGreaterThan(Integer value) {
            addCriterion("request_id >", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("request_id >=", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdLessThan(Integer value) {
            addCriterion("request_id <", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdLessThanOrEqualTo(Integer value) {
            addCriterion("request_id <=", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdIn(List<Integer> values) {
            addCriterion("request_id in", values, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdNotIn(List<Integer> values) {
            addCriterion("request_id not in", values, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdBetween(Integer value1, Integer value2) {
            addCriterion("request_id between", value1, value2, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdNotBetween(Integer value1, Integer value2) {
            addCriterion("request_id not between", value1, value2, "requestId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdIsNull() {
            addCriterion("retroactive_id is null");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdIsNotNull() {
            addCriterion("retroactive_id is not null");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdEqualTo(Integer value) {
            addCriterion("retroactive_id =", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdNotEqualTo(Integer value) {
            addCriterion("retroactive_id <>", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdGreaterThan(Integer value) {
            addCriterion("retroactive_id >", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("retroactive_id >=", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdLessThan(Integer value) {
            addCriterion("retroactive_id <", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdLessThanOrEqualTo(Integer value) {
            addCriterion("retroactive_id <=", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdIn(List<Integer> values) {
            addCriterion("retroactive_id in", values, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdNotIn(List<Integer> values) {
            addCriterion("retroactive_id not in", values, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdBetween(Integer value1, Integer value2) {
            addCriterion("retroactive_id between", value1, value2, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdNotBetween(Integer value1, Integer value2) {
            addCriterion("retroactive_id not between", value1, value2, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIsNull() {
            addCriterion("employee_id is null");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIsNotNull() {
            addCriterion("employee_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdEqualTo(Integer value) {
            addCriterion("employee_id =", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotEqualTo(Integer value) {
            addCriterion("employee_id <>", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdGreaterThan(Integer value) {
            addCriterion("employee_id >", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("employee_id >=", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdLessThan(Integer value) {
            addCriterion("employee_id <", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdLessThanOrEqualTo(Integer value) {
            addCriterion("employee_id <=", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIn(List<Integer> values) {
            addCriterion("employee_id in", values, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotIn(List<Integer> values) {
            addCriterion("employee_id not in", values, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdBetween(Integer value1, Integer value2) {
            addCriterion("employee_id between", value1, value2, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("employee_id not between", value1, value2, "employeeId");
            return (Criteria) this;
        }

        public Criteria andIsApproveIsNull() {
            addCriterion("is_approve is null");
            return (Criteria) this;
        }

        public Criteria andIsApproveIsNotNull() {
            addCriterion("is_approve is not null");
            return (Criteria) this;
        }

        public Criteria andIsApproveEqualTo(Integer value) {
            addCriterion("is_approve =", value, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveNotEqualTo(Integer value) {
            addCriterion("is_approve <>", value, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveGreaterThan(Integer value) {
            addCriterion("is_approve >", value, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_approve >=", value, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveLessThan(Integer value) {
            addCriterion("is_approve <", value, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveLessThanOrEqualTo(Integer value) {
            addCriterion("is_approve <=", value, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveIn(List<Integer> values) {
            addCriterion("is_approve in", values, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveNotIn(List<Integer> values) {
            addCriterion("is_approve not in", values, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveBetween(Integer value1, Integer value2) {
            addCriterion("is_approve between", value1, value2, "isApprove");
            return (Criteria) this;
        }

        public Criteria andIsApproveNotBetween(Integer value1, Integer value2) {
            addCriterion("is_approve not between", value1, value2, "isApprove");
            return (Criteria) this;
        }

        public Criteria andSepIsNull() {
            addCriterion("sep is null");
            return (Criteria) this;
        }

        public Criteria andSepIsNotNull() {
            addCriterion("sep is not null");
            return (Criteria) this;
        }

        public Criteria andSepEqualTo(Integer value) {
            addCriterion("sep =", value, "sep");
            return (Criteria) this;
        }

        public Criteria andSepNotEqualTo(Integer value) {
            addCriterion("sep <>", value, "sep");
            return (Criteria) this;
        }

        public Criteria andSepGreaterThan(Integer value) {
            addCriterion("sep >", value, "sep");
            return (Criteria) this;
        }

        public Criteria andSepGreaterThanOrEqualTo(Integer value) {
            addCriterion("sep >=", value, "sep");
            return (Criteria) this;
        }

        public Criteria andSepLessThan(Integer value) {
            addCriterion("sep <", value, "sep");
            return (Criteria) this;
        }

        public Criteria andSepLessThanOrEqualTo(Integer value) {
            addCriterion("sep <=", value, "sep");
            return (Criteria) this;
        }

        public Criteria andSepIn(List<Integer> values) {
            addCriterion("sep in", values, "sep");
            return (Criteria) this;
        }

        public Criteria andSepNotIn(List<Integer> values) {
            addCriterion("sep not in", values, "sep");
            return (Criteria) this;
        }

        public Criteria andSepBetween(Integer value1, Integer value2) {
            addCriterion("sep between", value1, value2, "sep");
            return (Criteria) this;
        }

        public Criteria andSepNotBetween(Integer value1, Integer value2) {
            addCriterion("sep not between", value1, value2, "sep");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNull() {
            addCriterion("role_id is null");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNotNull() {
            addCriterion("role_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoleIdEqualTo(Integer value) {
            addCriterion("role_id =", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotEqualTo(Integer value) {
            addCriterion("role_id <>", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThan(Integer value) {
            addCriterion("role_id >", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("role_id >=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThan(Integer value) {
            addCriterion("role_id <", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThanOrEqualTo(Integer value) {
            addCriterion("role_id <=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIn(List<Integer> values) {
            addCriterion("role_id in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotIn(List<Integer> values) {
            addCriterion("role_id not in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdBetween(Integer value1, Integer value2) {
            addCriterion("role_id between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("role_id not between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andApprovalDateIsNull() {
            addCriterion("approval_date is null");
            return (Criteria) this;
        }

        public Criteria andApprovalDateIsNotNull() {
            addCriterion("approval_date is not null");
            return (Criteria) this;
        }

        public Criteria andApprovalDateEqualTo(Date value) {
            addCriterion("approval_date =", value, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateNotEqualTo(Date value) {
            addCriterion("approval_date <>", value, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateGreaterThan(Date value) {
            addCriterion("approval_date >", value, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateGreaterThanOrEqualTo(Date value) {
            addCriterion("approval_date >=", value, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateLessThan(Date value) {
            addCriterion("approval_date <", value, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateLessThanOrEqualTo(Date value) {
            addCriterion("approval_date <=", value, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateIn(List<Date> values) {
            addCriterion("approval_date in", values, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateNotIn(List<Date> values) {
            addCriterion("approval_date not in", values, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateBetween(Date value1, Date value2) {
            addCriterion("approval_date between", value1, value2, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDateNotBetween(Date value1, Date value2) {
            addCriterion("approval_date not between", value1, value2, "approvalDate");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionIsNull() {
            addCriterion("approval_description is null");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionIsNotNull() {
            addCriterion("approval_description is not null");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionEqualTo(String value) {
            addCriterion("approval_description =", value, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionNotEqualTo(String value) {
            addCriterion("approval_description <>", value, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionGreaterThan(String value) {
            addCriterion("approval_description >", value, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("approval_description >=", value, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionLessThan(String value) {
            addCriterion("approval_description <", value, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionLessThanOrEqualTo(String value) {
            addCriterion("approval_description <=", value, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionLike(String value) {
            addCriterion("approval_description like", value, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionNotLike(String value) {
            addCriterion("approval_description not like", value, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionIn(List<String> values) {
            addCriterion("approval_description in", values, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionNotIn(List<String> values) {
            addCriterion("approval_description not in", values, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionBetween(String value1, String value2) {
            addCriterion("approval_description between", value1, value2, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andApprovalDescriptionNotBetween(String value1, String value2) {
            addCriterion("approval_description not between", value1, value2, "approvalDescription");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}